﻿using MiniExcelLibs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lan.Core
{
    public class ExcelHelper
    {
        public static void Save()
        {
            List<TestExcel> list = new List<TestExcel>()
            {
                new TestExcel(){Id=Guid.NewGuid(),Name="sfga撒地方个",AddTime=DateTime.Now},
                new TestExcel(){Id=Guid.NewGuid(),Name="奥德赛分公司答复",AddTime=DateTime.Now},
                new TestExcel(){Id=Guid.NewGuid(),Name="阿斯顿法国",AddTime=DateTime.Now},
                new TestExcel(){Id=Guid.NewGuid(),Name="阿三哥发的规划",AddTime=DateTime.Now},
            };
            MiniExcel.SaveAs("G:\\sugar\\test.xlsx", list,sheetName:"测试");
        }
    }

    public class TestExcel
    {
        public Guid Id { get; set; }
        public DateTime AddTime { get; set; }
        public string Name { get; set; }
    }
}
